using System.Threading.Tasks;
using Book.Blog.Core.DTOs;
using Book.Blog.Core.Entities;

namespace Book.Blog.Core.Interfaces
{
    public interface ISearchService
    {
        Task<SearchResultDTO> SearchAsync(SearchRequestDTO request);
        Task<bool> IndexPostAsync(Post post);
        Task<bool> UpdatePostIndexAsync(Post post);
        Task<bool> DeletePostIndexAsync(Guid postId);
        Task<bool> ReindexAllAsync();
    }
} 